package com.biboheart.sc.lexer.tokenizer;

import com.biboheart.sc.lexer.Tokenizer;
import com.biboheart.sc.support.definition.CharType;
import com.biboheart.sc.support.definition.TokenState;
import com.biboheart.sc.support.utils.LetterUtils;

public class TokenizerNumber implements Tokenizer {
    @Override
    public TokenState getState(char ch) {
        if (!CharType.CHAR_TYPE_NUMBER.equals(LetterUtils.getCharType(ch))) {
            return TokenState.TOKEN_STATE_END;
        }
        return TokenState.TOKEN_STATE_CONTINUE;
    }
}
